<div class="pz-block pz-block-news {$blockParams.css}">

    <h1>{if $blockParams.listTitle != ''}{$blockParams.listTitle}{else}{$currentPage->getMetaTitle()}{/if}</h1>

    {if $blockParams.listHeader != ''}<div class="newsListHeader">{$blockParams.listHeader}</div>{/if}

    {foreach from=$news key=key item=value}
    <div class="{if $key == 0}first{/if} news">

        {if $blockParams.displayTitle}
        <h2 class="title"><a href="{$value.url}">{$value.news->getLabel()}</a></h2>
        {/if}

        {if $blockParams.displaySubTitle && !is_null($value.news->getEventDates()) && $value.news->getEventDates() != ''}
        <h3 class="subTitle">{$value.news->getEventDates()}</h3>
        {/if}

        {if $blockParams.displayDate || $blockParams.displayAuthor}
        <div class="meta">
            {if $blockParams.displayAuthor}
                <span class="author">
                    {assign var='author' value=$value.news->getAuthor()|fullname}
                    {t 1=$author}By %s{/t}
                </span>
            {/if}
            {if $blockParams.displayDate && $blockParams.displayAuthor} - {/if}
            {if $blockParams.displayDate}
                <span class="date">
                    {date date=$value.news->getModificationDate()} ({$value.news->getModificationDate()|since})
                </span>
            {/if}
        </div>
        {/if}

        {if $value.news->getPictureUrl($blockParams.picWidth,$blockParams.picHeight) != ''}
        <img src="{$value.news->getPictureUrl($blockParams.picWidth,$blockParams.picHeight)}" title="{$value.news->getLabel()}" class="picture" />
        {/if}
        
        {if $blockParams.displayHeader}
        <p class="header">{$value.news->getFrontHeader($blockParams.headerLength)}</p>
        {/if}

        {if $blockParams.displayLinkLabel}
            <span class="linkLabel">
                <a href="{$value.url}">{if $blockParams.linkLabel != ''}{$blockParams.linkLabel}{else}{t}Read more{/t}{/if}</a>
            </span>
        {/if}
        <div class="clear" ></div>
    </div>
    {/foreach}
</div>